package com.lz.io;

import java.io.IOException;
import java.util.Scanner;

public class Input1 {

	/**
	 * @param args
	 * @throws IOException
	 */
	public static void main(String[] args) {
	
		System.out.println("Input");
		byte buffer[] = new byte[512];

		try {
			int count = System.in.read(buffer);// 获取标准输入流
			System.out.println(count);
			System.out.println("Output");
			for (int i = 0; i < count; i++) {
				System.out.print("\t" + buffer[i]);
			}
			System.out.println();
			for (int j = 0; j < count; j++) {

				System.out.print((char) buffer[j]);
			}

			System.out.println(count);

		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
